import java.io.Serializable;

public class Message implements Serializable {
	private static final long serialVersionUID = -8635115574435827195L;
	private String nickName;
	private String text;
	private OperationType operation;

	public Message(String nickName, String text, OperationType operation) {
		super();
		this.nickName = nickName;
		this.text = text;
		this.operation = operation;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public OperationType getOperation() {
		return operation;
	}

	public String toString() {
		return nickName + ": " + text;
	}
}
